Skip to content

fix(test): replace Thread.sleep with Wait.waitFor in ZeroPrefetchConsumerTest#1746

Merged
jbonofre merged 1 commit intoapache:mainfrom
jbonofre:new-fix-zero-prefetch-consumer-test
Mar 9, 2026
Merged

fix(test): replace Thread.sleep with Wait.waitFor in ZeroPrefetchConsumerTest#1746
jbonofre merged 1 commit intoapache:mainfrom
jbonofre:new-fix-zero-prefetch-consumer-test

Conversation

@jbonofre
Copy link
Member

@jbonofre jbonofre commented Mar 9, 2026

This is another part of ZeroPrefetchConsumerTest flaky.

I replace remaining Thread.sleep() with deterministic Wait.waitFor() polling to handle asynchronous ConsumerControl processing, preventing flaky test failures due to timing races.

…umerTest

Replace remaining Thread.sleep() with deterministic Wait.waitFor() polling
to handle asynchronous ConsumerControl processing, preventing flaky test
failures due to timing races.
@jbonofre jbonofre requested a review from jeanouii March 9, 2026 16:04
Copy link
Contributor

@jeanouii jeanouii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@jbonofre jbonofre merged commit a2fe891 into apache:main Mar 9, 2026
9 of 10 checks passed
@jbonofre jbonofre deleted the new-fix-zero-prefetch-consumer-test branch March 9, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants